<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>${APP.name!'简单开发平台'}</title>
	<%include("/eova/meta.html"){}%>
	<%include("/eova/include_base.html"){}%>
</head>

<body class="layui-layout-body">

	<div id="LAY_app">
		<div class="layui-layout layui-layout-admin">
			<div class="layui-header">
				<!-- Head -->
				<ul class="layui-nav layui-layout-left">
					<li class="layui-nav-item layadmin-flexible" lay-unselect>
						<a href="javascript:;" layadmin-event="flexible" title="侧边伸缩">
							<i class="layui-icon layui-icon-shrink-right" id="LAY_app_flexible"></i>
						</a>
					</li>
					<li class="layui-nav-item layui-hide-xs" lay-unselect>
						<a href="javascript:;" layadmin-event="refresh" title="刷新">
							<i class="layui-icon layui-icon-refresh-3"></i>
						</a>
					</li>
					<%if(!isEmpty(ENV!) && ENV != 'PRD'){%>
					<li class="layui-nav-item layui-hide-xs" lay-unselect>
						<a href="javascript:;" title="本系统当前所在运行环境" style="font-weight: bold;">
							<i class="layui-icon layui-icon-website"></i>
							运行环境：${ENV}
						</a>
					</li>
					<%}%>
				</ul>
				<ul class="layui-nav layui-layout-right">
					<li class="layui-nav-item" lay-unselect>
						<a id="SU" href="javascript:;" style="color: rgb(33, 150, 243);"></a>
					</li>
					<li class="layui-nav-item layui-hide-xs" lay-unselect>
						<a href="javascript:;" layadmin-event="fullscreen">
							<i class="layui-icon layui-icon-screen-full"></i>
						</a>
					</li>
					<li class="layui-nav-item" lay-unselect>
						<a href="javascript:;">
							<i class="layui-icon layui-icon-username"></i>
							<cite>${LOGIN_INFO}</cite>
						</a>
						<dl class="layui-nav-child">
							<dd><a onclick="updatePwd('${I18N('修改密码')}')">${I18N('修改密码')}</a></dd>
							<%if(loginUser.isAdmin){%>
							<hr><dd title="超级管理员特权, 快速切换用户, 快速测试多用户多角色业务"><a onclick="$.open.dialog('超级用户切换', '/eova/admin/su', 900, 0.95)">☆超级用户切换☆</a></dd>
							<%}%>
							<hr>
							<dd style="text-align: center;"><a href="/doExit">退出</a></dd>
						</dl>
					</li>
				</ul>
			</div>

			<!-- Left Menu -->
			<div class="layui-side layui-side-menu">
				<div class="layui-side-scroll">
					<div id="EOVA-PRO" class="layui-logo" lay-href="${APP_DOMAIN!'http://www.eova.cn'}" title="Eova V${VER!}">
						<span>${APP.name!'简单开发平台'}</span>
					</div>
					<ul class="layui-nav layui-nav-tree" lay-shrink="all" id="LAY-system-side-menu" lay-filter="layadmin-system-side-menu">
						<%// 1级目录%>
						<%for(a in tree.children){// 最多支持4层菜单,层级太深不方便操作,显示宽度也不够%>
						<li data-name="${a.code}" class="layui-nav-item ${a.isExpand ? 'layui-nav-itemed' : ''}">
							<%if(!isEmpty(a.children!)){// 第一层必须是目录%>
								<a href="javascript:;" lay-tips="${a.name}" lay-direction="2">
									<i class="eova-icon ${a.iconskip!}"></i>
									<cite>${a.name}</cite>
								</a>
								<%// 2级目录%>
								<%for(b in a.children){%>
								<dl class="layui-nav-child">
									<dd data-name="${b.code}" class="${b.isExpand ? 'layui-nav-itemed' : ''}">
										<%if(isEmpty(b.children!)){%>
											<a lay-href="${b.link}" title="${b.name}"> <i class="eova-icon ${b.iconskip!}"></i> ${b.name}</a>
										<%} else {%>
											<a href="javascript:;"><i class="eova-icon ${b.iconskip!}"></i> ${b.name}</a>
											<%// 3级目录%>
											<%for(c in b.children){%>
							                <dl class="layui-nav-child">
							                	<dd data-name="${c.code}" class="${c.isExpand ? 'layui-nav-itemed' : ''}">
													<%if(isEmpty(c.children!)){%>
														<a lay-href="${c.link}" title="${c.name}"> <i class="eova-icon ${c.iconskip!}" style="padding-left: 15px"></i> ${c.name}</a>
													<%} else {%>
														<a href="javascript:;"><i class="eova-icon ${c.iconskip!}" style="padding-left: 15px"></i> ${c.name}</a>
														<%// 4级目录%>
														<%for(d in c.children){%>
										                <dl class="layui-nav-child">
										                	<a lay-href="${d.link}" title="${d.name}"><i class="eova-icon ${d.iconskip!}" style="padding-left: 23px"></i> ${d.name}</a>
										                </dl>
										                <%}%>
													<%}%>
												</dd>
							                </dl>
							                <%}%>
										<%}%>
									</dd>
								</dl>
							    <%}%>
						    <%}%>
						</li>
						<%}%>
					</ul>
				</div>
			</div>

			<!-- Tabs -->
			<div class="layadmin-pagetabs" id="LAY_app_tabs">
				<div class="layui-icon layadmin-tabs-control layui-icon-prev" layadmin-event="leftPage"></div>
				<div class="layui-icon layadmin-tabs-control layui-icon-next" layadmin-event="rightPage"></div>
				<div class="layui-icon layadmin-tabs-control layui-icon-down">
					<ul class="layui-nav layadmin-tabs-select" lay-filter="layadmin-pagetabs-nav">
						<li class="layui-nav-item" lay-unselect>
							<a href="javascript:;"></a>
							<dl class="layui-nav-child layui-anim-fadein">
								<dd layadmin-event="closeThisTabs"><a href="javascript:;">关闭当前</a></dd>
								<dd layadmin-event="closeOtherTabs"><a href="javascript:;">关闭其它</a></dd>
								<dd layadmin-event="closeAllTabs"><a href="javascript:;">关闭全部</a></dd>
							</dl>
						</li>
					</ul>
				</div>
				<div class="layui-tab" lay-unauto lay-allowClose="true" lay-filter="layadmin-layout-tabs">
					<ul class="layui-tab-title" id="LAY_app_tabsheader">
						<li lay-id="main" lay-attr="main" class="layui-this">
						<i class="layui-icon layui-icon-home"></i></li>
					</ul>
				</div>
			</div>

			<!-- Main -->
			<div class="layui-body" id="LAY_app_body">
				<div class="layadmin-tabsbody-item layui-show">
					<iframe src="${APP_MAIN}" frameborder="0" class="layadmin-iframe"></iframe>
				</div>
			</div>
			
		</div>
	</div>
	<script>var ENV = "${ENV!}";</script>
	<script type="text/javascript" src="${CDN!STATIC!}/eova/plugins/eova/eova.min.js?v=${VER!}"></script>
	<script type="text/javascript" src="${CDN!STATIC!}/eova/ui/ext/eova.layer.js?v=${VER!}"></script>
	<script type="text/javascript" src="${CDN!STATIC!}/eova/ui/js/common.js?v=${VER!}"></script>
	<script type="text/javascript" src="${CDN!STATIC!}/eova/ui/js/index.js?v=${VER!}"></script>
	<%if(isTrue(EOVA_MSG)){%>
	<script type="text/javascript" src="${CDN!STATIC!}/eova/ui/js/eova.msg.js?v=${VER!}"></script>
	<%}%>
</body>

</html>